package org.product

class ProductCalalog {
	String code;
	String name;
	String remark;
	String createUser
	Date dateCreated
	Date lastUpdated
	
	static belongsTo = [parent:ProductCalalog]
	static hasMany =[childrens:ProductCalalog,products:Product]
	
    static constraints = {
    	code(blank:false)
    	name(blank:false)
    	remark(widget:'textarea')
    }
}
